#ifndef SHORTCUTCONFIGDIALOG_H
#define SHORTCUTCONFIGDIALOG_H

#include <QDialog>
#include <QHash>

namespace Ui {
class ShortcutConfigDialog;
}

class ShortcutConfigDialog : public QDialog {
    Q_OBJECT
public:
    explicit ShortcutConfigDialog(const QHash<QString, QAction*>& actions,
                                  QWidget *parent = nullptr);
    ~ShortcutConfigDialog();

    QHash<QString, QKeySequence> getShortcuts() const;

private slots:
    void onResetToDefaults();

private:
    Ui::ShortcutConfigDialog *ui;
    QHash<QString, QKeySequence> defaultShortcuts;
};

#endif // SHORTCUTCONFIGDIALOG_H
